package com.example.demo2.mapper;

import com.example.demo2.pojo.data.AnnouncementDO;
import com.example.demo2.pojo.vo.AnnouncementVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 
 * <br/>
 * Created by weidong on 2020/05/06
 */
@Repository
public interface AnnouncementMapper {
    Integer add(AnnouncementVO announcementVO);

    Integer updateById(AnnouncementVO announcementVO);

    AnnouncementDO findById(Integer id);

    List<AnnouncementDO> list(AnnouncementVO announcementVO);

    List<AnnouncementDO> listPage(AnnouncementVO announcementVO);

    Integer count(AnnouncementVO announcementVO);

    Integer deleteById(Integer id);
    String find (Integer id);

}